<?php if (isset($action) && $action == 'New'): ?>
  <ul class="sf_admin_actions">

    <?php echo $helper->linkToList(array('params' => array(), 'class_suffix' => 'list', 'label' => 'Back to list',)) ?>
    <li>
      <input class="btn btn-success" type="submit" value="Guardar">
    </li>

  </ul>


<?php else: ?>
  <ul class="sf_admin_actions">
    <li>
      <input class="btn btn-danger" type="button" value="Cerrar" onclick="closeModal()" />
    </li>
    <li>
      <input class="btn btn-success" type="submit" value="Guardar">
    </li>
  </ul>
<?php endif?>